package com.twu.biblioteca.core;

/**
 * Created by cristianpinto on 2/21/14.
 */
public class Movie {

    private boolean status;
    private String name;
    private int year;
    private String director;
    private int rating;

    public Movie(String name, int year, String director, int rating) {
        this.name = name;
        this.status = true;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public String getName() {
        return name;
    }

    public boolean getStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return String.format("%s, %d, %s, %d/10", name, year, director, rating);
    }
}
